<?php
function delete_invitation($id_contact) {
	if (isset($id_contact)) {
		require_once("model/invitationBD.php");
		if (delete_invitation_db($id_contact)) {
			return true;
		} else {
			return false;
		}
	}
}

function view_invitation() {
	require_once("model/invitationBD.php");
	$tab = view_simple_invitationBD();
	if(sizeof($tab['id_contact']) > 0) {
		require("view/invitation.tpl");
	} else {
		$message = "Aucune invitation pour le moment";
		require("view/invitation.tpl");
	}	
}

function add_invitation($mail, $name_contact, $surname_contact) {
	require_once("model/invitationBD.php");
	if(add_invitationBD($mail, $name_contact, $surname_contact)){
		return true;
	} else {
		return false;
	}	
}



?>